package com.runa.monitor.platinterface.netservice.equipment.ex;

import org.jetbrains.annotations.NotNull;

public class ExBeanForQueue implements Comparable<ExBeanForQueue> {

//    private CommNetEquipment commNetEquipment;
    private String id;
    private String netSerial;
//    private TaskFunction function;
    private String task;
    private String holdInfo;
    private String topic;
    private Integer priority;


    private String methodName;
//    @JsonIgnoreProperties
    private Object parameterOne;//此处单节点对象,瑞纳为list
    private Object parameterTwo;
    private Object parameterThree;
//    private Object parameterFour;


//    public ExBean(int id, Object object) {
//        this.object = object;
//        this.id = id;
//    }


    public ExBeanForQueue(String id, String netSerial, String task, String holdInfo, String topic, Integer priority, String methodName, Object parameterOne, Object parameterTwo, Object parameterThree) {
        this.id = id;
        this.netSerial = netSerial;
        this.task = task;
        this.holdInfo = holdInfo;
        this.topic = topic;
        this.priority = priority;
        this.methodName = methodName;
        this.parameterOne = parameterOne;
        this.parameterTwo = parameterTwo;
        this.parameterThree = parameterThree;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNetSerial() {
        return netSerial;
    }

    public void setNetSerial(String netSerial) {
        this.netSerial = netSerial;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getHoldInfo() {
        return holdInfo;
    }

    public void setHoldInfo(String holdInfo) {
        this.holdInfo = holdInfo;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Object getParameterOne() {
        return parameterOne;
    }

    public void setParameterOne(Object parameterOne) {
        this.parameterOne = parameterOne;
    }

    public Object getParameterTwo() {
        return parameterTwo;
    }

    public void setParameterTwo(Object parameterTwo) {
        this.parameterTwo = parameterTwo;
    }

    public Object getParameterThree() {
        return parameterThree;
    }

    public void setParameterThree(Object parameterThree) {
        this.parameterThree = parameterThree;
    }

    @Override
    public int compareTo(@NotNull ExBeanForQueue exBean) {
//        return this.id - exBean.getId();
        return exBean.getPriority() - this.priority;
    }

}
